import Vuex from 'vuex';
import Vue from 'vue';
Vue.use(Vuex);


import detail from './detail';
import shopcart from './shopcart';

//引入Vuex -----相当于咱们最
import flink from "./f-link"
import user from "./user"
import orders from "./orders"
// 首页仓库
import home from "./home"
import trade from './trade';

import search from './search'
//需要暴露Vuex.Store类的实例(你需要暴露这个类的实例，如果你不对外暴露，外部是不能使用的)
export default new Vuex.Store({
  //模块：把小仓库进行合并变为大仓库
  modules: {
    user,
    flink,
    orders,
    home,
    search,
    detail,
    shopcart,
    trade



  },
});


